﻿var Group = {
    model: function (d = {}) {
        this.Title = d.Title || "分组标题";
        this.Name = d.Name || 'lg' + lg.GetSN(6, 10);
        this.EnTitle = d.EnTitle || "";
        this.Tips = d.Tips || "";
        this.IsRender = true;
        this.NullValue = true;
    },
    component: {
        name: "lg-form-groupTitle",
        data: {
            props: {
                data: {
                    type: [String, Object],
                    default: {}
                },
                items: {
                    type: Object
                }
            },
            template: `
                    <div class="lg-form-item lg-section">
					 	<div class="lg-section-title">
								<span class="cn">{{data.Title}}</span><span class="en" v-if="data.EnTitle">{{data.EnTitle}}</span>
							</div>
						<div class="lg-section-tips">{{data.Tips}}</div>
			        </div>`

        }
    }
}


export { Group }